# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'

class GoogleAnalyticsExtension < Radiant::Extension
  version "1.0"
  description "Provides tags to include GoogleAnalytics javascript."
  url "http://code.google.com/p/radiantextensions/"
  
  # define_routes do |map|
  #   map.connect 'admin/google_analytics/:action', :controller => 'admin/google_analytics'
  # end
  
  def activate
    # admin.tabs.add "Google Analytics", "/admin/google_analytics", :after => "Layouts", :visibility => [:all]
    Page.send :include, GoogleAnalyticsTags
  end
  
  def deactivate
    # admin.tabs.remove "Google Analytics"
  end
  
end